<%@ page language="java" pageEncoding="UTF-8"%>

<style>
.text-right {
	text-align: right;
	width: 8%;
	padding-right: 2px;
}

td {
	padding: 10px;
}

input.radio-margin0 {
	margin: 0;
}

#title {
	margin: 0;
	width: 50%;;
}

#abs {
	height: 60px;
	width: 52%;
}

#detail {
	height: 240px;
	width: 90%;
}

span {
	padding: 0 10px 0 5px;
	vertical-align: middle;
}

.inputsize {
   height: 16px;
   width: 90px;
}
.halfinputsize {
   height: 16px;
   width: 45px;
}

</style>

<script type="text/javascript">
function newspecial()
{
	window.showModalDialog("food/food-special-new.do");
	_special_refresh();
}

function _special_refresh()
{
	require(['admin-food-special'], function(food) {
		food.init();
	});
}

function _food_special_mod(id)
{
	window.showModalDialog("food/food-special-mod.do?id="+id);
	_special_refresh();
}

function _food_special_del(id)
{
	if(confirm("是否删除"))
	{
		var xmlhttp=new XMLHttpRequest();
		
		xmlhttp.open("GET","food/food-special-del.do?id="+id,true);
		xmlhttp.send();
		alert("删除成功");
	}
	_special_refresh();
}

require(['admin-food-special'], function(food) {
	food.init();
});
</script>


<div class="control-group">
	<table>
		<thead>
			<th width="20%">日期</th>
			<th width="20%">名称</th>
			<th width="20%">单品优惠金额</th>
			<th width="20%">套餐优惠金额</th>
			<th width="20%">操作</th>
		</thead>
		<tbody id="food_special_list">
			<tr>
				<td width="20%">td1</td>
				<td width="20%">td2</td>
				<td width="20%">td3</td>
				<td width="20%">td4</td>
				<td width="20%">td5</td>
			</tr>
		</tbody>
	</table>
	<button id="new_food_special" type="button" onclick="newspecial();" class="btn btn-primary" data-toggle="button">新建</button>
</div>
